<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');

require_once('include/MVC/View/views/view.edit.php');

class AccountsViewEdit extends ViewEdit {
	function AccountsViewEdit(){
 		parent::ViewEdit();
 	}
	
	function display(){
		$this->setFields();
		parent::display();

	}
	
	function setFields(){ 
        global $app_list_strings;
        if($this->bean->uudaithanhtoannoidia=='1') {
            $this->ss->assign('uudaithanhtoannoidia','checked');
        }
        else{
            $this->ss->assign('uudaithanhtoannoidia','');
        }
        
        if($this->bean->uudaithanhtoanquocte=='1'){
            $this->ss->assign('uudaithanhtoanquocte','checked'); 
        }
        else{
           $this->ss->assign('uudaithanhtoanquocte',''); 
        }
        if($this->bean->uudaichuyentien=='1'){
            $this->ss->assign('uudaichuyentien','checked'); 
        }
        else{
            $this->ss->assign('uudaichuyentien','');
        }
        
        if($this->bean->uudaivaytien=='1'){
            $this->ss->assign('uudaivaytien','checked'); 
        }
        else{
            $this->ss->assign('uudaivaytien','');
        }
	}	

}
?>
